package com.torres.knowledgeBase.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

import io.swagger.annotations.Api;
import lombok.extern.slf4j.Slf4j;

@Controller
@RequestMapping("content")
@Slf4j
@Api(tags = "01.用户接口api")
public class ContentController {

	@GetMapping("/index")
	public String index(Model model) {
		model.addAttribute("user", "xxxxxxx");
		return "content/index";
	}
	
}
